name: Continuous Integration

on:
  pull_request:
  push:
    branches:
      - master

jobs:
  build:
    if: '! github.event.pull_request.draft'
    name: builds yandex music extension
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "16"
      - run: yarn --frozen-lockfile
      - run: yarn run compile
